<?php

$_POST['category'] = 'kittensCategory';
$_POST['title'] = 'title-' . rand(100,999);
$_POST['article'] = 'article' . rand(100,999);

$entryData = array(
    'cat'     => $_POST['category'],
    'title'   => $_POST['title'],
    'article' => $_POST['article'],
    'when'    => time()
);

$context = new ZMQContext();

$socket = $context->getSocket(ZMQ::SOCKET_PUSH, 'my pusher');
$socket->connect("tcp://localhost:5555");

$socket->send(json_encode($entryData));